package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
public class RegistrationRequest extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 账号 */
    @Excel(name = "账号")
    private String userName;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 用户性别（0男 1女 2未知) */
    @Excel(name = "用户性别", readConverterExp = "用户性别（0男 1女 2未知)")
    private String sex;

    /** 申请角色 */
    @Excel(name = "申请角色")
    private String roleName;

    /** 申请状态 -- PENDING, APPROVED, REJECTED */
    @Excel(name = "申请状态 -- PENDING, APPROVED, REJECTED")
    private String requestStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String auditComment;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber()
    {
        return phonenumber;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }

    public String getRoleName()
    {
        return roleName;
    }
    public void setRequestStatus(String requestStatus)
    {
        this.requestStatus = requestStatus;
    }

    public String getRequestStatus()
    {
        return requestStatus;
    }
    public void setAuditComment(String auditComment)
    {
        this.auditComment = auditComment;
    }

    public String getAuditComment()
    {
        return auditComment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("nickName", getNickName())
                .append("userName", getUserName())
                .append("email", getEmail())
                .append("password", getPassword())
                .append("phonenumber", getPhonenumber())
                .append("sex", getSex())
                .append("roleName", getRoleName())
                .append("requestStatus", getRequestStatus())
                .append("auditComment", getAuditComment())
                .toString();
    }
}
